package Bxx;

public class Home extends Bx{
    private  double value;
    private  int area;
    public Home(double value, int area){
        this.value=value;
        this.area=area;
    }
    @Override
    public double add() {
        double basePremium=value*0.015;
        if(area>100){
            return basePremium=basePremium*1.05;
        }
        return basePremium;
    }
}
